package com.ebring.shareEducation.dao;

import com.ebring.shareEducation.bean.ConditionRole;
import com.ebring.shareEducation.bean.Role;

import com.ebring.shareEducation.utils.RspMsg;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface RoleMapper extends Mapper<Role> {

    List<Role> selectRoleByUserId(@Param("userId") String userId);
    /**
     * 查询角色的下级角色
     */
    List<ConditionRole> selectCRByUserRole(@Param("roleId") String roleId);
}
